<?php
/**
 * Arquivo responsável pelo carregamento da View e do Model
 */
class Controller
{
	function __construct()
	{
		$this->view = new View();		
	}
	
	public function loadModel($name)
	{
		$nameModel = $name.'_Model';
		$file = APP_M.$nameModel.'.php';
		if(file_exists($file)){
			require $file;
			$this->model = new $nameModel;
		}
	}
}
?>